#!/bin/sh
db_name=$1
db_user=$2
db_pass=$3
db_host=$4
mysql -u $db_user --password=$db_pass -h $db_host  $db_name < pub_db/tb_tree.sql
mysql -u $db_user --password=$db_pass -h $db_host  $db_name < pub_db/tb_env_dev.sql
mysql -u $db_user --password=$db_pass -h $db_host  $db_name < pub_db/tb_env_dev_prv.sql
mysql -u $db_user --password=$db_pass -h $db_host  $db_name < pub_db/tb_env_dut.sql
mysql -u $db_user --password=$db_pass -h $db_host  $db_name < pub_db/tb_env_test.sql
mysql -u $db_user --password=$db_pass -h $db_host  $db_name < pub_db/tb_log_result.sql
mysql -u $db_user --password=$db_pass -h $db_host  $db_name < pub_db/tb_test.sql
mysql -u $db_user --password=$db_pass -h $db_host  $db_name < pub_db/tb_test_group.sql
mysql -u $db_user --password=$db_pass -h $db_host  $db_name < pub_db/tb_dev_access.sql
